package dao;

import entity.Chapter;
import exception.DataAccessException;
import org.apache.ibatis.annotations.Param;
import vo.ChapterVo;

import java.util.List;

public interface ChapterDao {
    List<Chapter> selectChapterByVo(ChapterVo chapterVo) throws DataAccessException;

    Chapter selectByTitle(String title) throws DataAccessException;

    int insertChapter(Chapter chapter) throws DataAccessException;

    Chapter selectById(Integer id) throws DataAccessException;

    int updateChapterById(Chapter chapter) throws DataAccessException;

    List<Chapter> selectAllByCourseId(Integer course_id) throws DataAccessException;

    List<Chapter> selectChapterByCourseId(int course_id);
}
